from django.contrib import admin
from django.contrib.admin import ModelAdmin

from passages.models import Passage


@admin.register(Passage)
class PassageAdmin(ModelAdmin):
    date_hierarchy = 'created_at'
    list_display = ('author', 'created_at',)
    readonly_fields = ('created_at', 'likes')
